'''
  This Source Code Form is subject to the terms of the Mozilla Public
  License, v. 2.0. If a copy of the MPL was not distributed with this
  file, You can obtain one at http://mozilla.org/MPL/2.0/.
'''
from machine import SoftSPI, Pin
from conf import display as conf
import exdriver.max7219 as max7219

def display_4(data):
    virtSPI = SoftSPI(sck = conf.spiClock, mosi = conf.mosiDataIO, miso = 13)
    display = max7219.Matrix8x8(virtSPI, Pin(conf.spiCS), conf.PhyWIDTH//8)
    display.text(data, 0, 1, 1)
    display.show()